import request from '@/utils/request'


  
  export function signal(params) {
	return request({
	  url: 'api/build/riskWarn',
	  method: 'get',
	  params
	})
  }

   
  export function sigalAddList(params) {
	return request({
	  url: 'api/build/riskWarn/custs',
	  method: 'get',
	  params
	})
  } 
 

  export function addRisk(data) {
	return request({
	  url: 'api/build/riskWarn',
	  method: 'post',
	  data
	})
   }

   export function riskInfo(id) {
	return request({
	  url: 'api/build/riskWarn/' + id,
	  method: 'get'
	})
  }

  export function editRisk(data) {
	return request({
	  url: 'api/build/riskWarn',
	  method: 'put',
	  data
	})
   }

   export function deleRiskInfo(id) {
	return request({
	  url: 'api/build/riskWarn/' + id,
	  method: 'delete'
	})
  }

  export function processTreeRiskList() {  
	return request({
	  url: 'task/workflow-task/query/candidateGroup?processDefinitionId=test_risk_warn_process:1:79169348-2af8-11ea-a903-c0a5dda0ba60',
	  method: 'post',
	})
}

export function approval(params) {
	return request({
	  url: 'api/riskWarn/approval',
	  method: 'get',
	  params
	})
  }

  export function rApproDetails(id) {
	return request({
	  url: 'api/build/riskWarn/' + id,
	  method: 'get'
	})
  }


 
  export function relieveList(params) {
	return request({
	  url: 'api/relieve/riskWarn',
	  method: 'get',
	  params
	})
  }




  export function relieveItem(id) {
	return request({
	  url: 'api/relieve/riskWarn/' + id,
	  method: 'put'
	})
  }


  export function busRelation(params) {
	return request({
	  url: 'api/processBusiConfig',
	  method: 'get',
	  params
	})
  }

  export function flowRelation() {
	return request({
	  url: 'api/processBusiConfig/process',
	  method: 'get',
	})
  }


//   export function busRelationAdd(params) {
// 	return request({
// 	  url: 'api/processBusiConfig',
// 	  method: 'post',
// 	  params
// 	})
//   }

  export function busRelationAdd(data) {
	return request({
	  url: 'api/processBusiConfig',
	  method: 'post',
	  data
	})
   }

   export function busRelationEdit(data) {
	return request({
	  url: 'api/processBusiConfig',
	  method: 'put',
	  data
	})
   }